package com.znufe.exam.viewmodel.admin.question.excelmodel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.znufe.exam.utility.easyexcel.ExcelPatternMsg;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class SingleChoiceFromExcelVM {

    @ExcelProperty(value = "题干（单选题）*", index= 0)
    @ColumnWidth(30)
    private String title;

    @ExcelProperty(value = "选项A*", index = 1)
    @ColumnWidth(15)
    private String optionA;

    @ExcelProperty(value = "选项B*", index = 2)
    @ColumnWidth(15)
    private String optionB;

    @ExcelProperty(value = "选项C", index = 3)
    @ColumnWidth(15)
    private String optionC;

    @ExcelProperty(value = "选项D", index = 4)
    @ColumnWidth(15)
    private String optionD;

    @ExcelProperty(value = "选项E", index = 5)
    @ColumnWidth(15)
    private String optionE;

    @ExcelProperty(value = "选项F", index = 6)
    @ColumnWidth(15)
    private String optionF;

    @ExcelProperty(value = "答案*", index= 7)
    @ColumnWidth(8)
    private String correct;

    @ExcelProperty(value = "解析", index= 8)
    @ColumnWidth(30)
    private String analyze;

    @ExcelProperty(value = "分数*", index= 9)
    @ColumnWidth(8)
    @Pattern(regexp = ExcelPatternMsg.NUMBER, message = ExcelPatternMsg.NUMBER_MSG)
    // 要转成Integer类型
    private String score;

    @ExcelProperty(value = "难度", index= 10)
    @ColumnWidth(8)
    @Pattern(regexp = ExcelPatternMsg.NUMBER, message = ExcelPatternMsg.NUMBER_MSG)
    // 要转成Integer类型
    private String difficultVM;

}
